import { get,post } from '@/utils/request'

export function getUserList(data) {
	return get('/user/getUserList',data)
}

export function getAvailableRoleList() {
	return get('/user/getAvailableRoleList')
}

export function getAvailableTopDepartmentList() {
	return get('/user/getAvailableTopDepartmentList')
}

export function getChildrenDepartmentListByDeptId(data) {
	return get('/user/getChildrenDepartmentListByDeptId',data)
}

export function getUserById(data) {
	return get('/user/getUserById',data)
}

export function createUser(data) {
	return post('/user/createUser',data)
}

export function updateUser(data) {
	return post('/user/updateUser',data)
}

export function deleteUser(data) {
	return get('/user/deleteUser',data)
}